package com.cy.listener;

import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import com.cy.controller.MasterController;
import com.cy.member.Chessboard;
/**
 * 键盘监听器
 * @author CY
 *
 */
public class ChessboardListener extends MouseAdapter {

	@Override
	public void mouseClicked(MouseEvent e) {
		//将被点击的坐标传给总控
		MasterController.Clicked(Chessboard.pixel2site(new Point(e.getX(),e.getY())));
	}

}
